package cn.bb.entity;

import java.io.Serializable;

public class Computer implements Serializable{
    private MainFrame mainFrame;
    private Hd hd;
    private Display display;
    private Power power;
    public void printsss(){
        System.out.println("电脑配置清单：");
        mainFrame.printlnInfo();
        hd.printlnHdInfo();
        display.printlnInfo();
        power.printInfo();
    }

    public MainFrame getMainFrame() {
        return mainFrame;
    }

    public void setMainFrame(MainFrame mainFrame) {
        this.mainFrame = mainFrame;
    }

    public Hd getHd() {
        return hd;
    }

    public void setHd(Hd hd) {
        this.hd = hd;
    }

    public Display getDisplay() {
        return display;
    }

    public void setDisplay(Display display) {
        this.display = display;
    }

    public Power getPower() {
        return power;
    }

    public void setPower(Power power) {
        this.power = power;
    }
}
